using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TestImport.PlatoBestellingen
{
    public partial class BestellingenOpmerkingenUpdate : Form
    {

        private BestellingenBeheren bestellingenBeheren;
        public BestellingenOpmerkingenUpdate(string interneOpmerking, string platoOpmerking, BestellingenBeheren bestellingenBeheren)
        {
            InitializeComponent();
            txtInterneOpmerking.Text = interneOpmerking;
            txtPlatoOpmerking.Text = platoOpmerking;
            this.bestellingenBeheren = bestellingenBeheren;
            this.Location = new System.Drawing.Point(20, 300);
        }

        private void btnRegistreer_Click(object sender, EventArgs e)
        {
            bestellingenBeheren.updateOpmerkingen(txtPlatoOpmerking.Text, txtInterneOpmerking.Text);
            Close();
        }

        private void btnSluit_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}